package com.ziyia.jetpack;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MediatorLiveData;
import androidx.lifecycle.MutableLiveData;

public class Repository {
    public static LiveData<User> getUser(String userId) {
        MutableLiveData<User> liveData = new MutableLiveData<>();
        liveData.setValue(new User(userId, 100));
        return liveData;
    }

    public static LiveData<String> refresh() {
        MutableLiveData<String> liveData = new MediatorLiveData();
        liveData.setValue("");
        return liveData;
    }
}
